const router = require('express').Router()

const { testLogin, testId } = require('../middleware/users')

const { login, info } = require('../controllers/usesr')

router.post('/login', testLogin, login)

router.get('/info/:id', testId, info)

module.exports = router